package com.example.service;

import com.example.pojo.SysResource;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyj
 * @since 2023-02-16
 */
public interface ISysResourceService extends IService<SysResource> {

    //根据userid查询
    List<SysResource> queryByUserId(Long id);

    //给角色分配权限
    boolean assignPermissions(Serializable roleId, List permissions);
}
